﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Admin_TestimonialChange, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/jQueryCalendar.ascx" TagName="jQueryCalendar" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <UC:jQueryCalendar ID="ucjQueryCalendar" runat="server" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Add Testimonial</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    <div>
        <a href="/Pages/Admin/TestimonialList.aspx">Back to Testimonial List</a>
    </div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--Testimonial Information Group Box Start--%>        
        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="Manage Testimonial"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define Your Testimonial"></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:20%;" />
                        <col />                                        
                    </colgroup>

				    <tr>
					    <td>Title<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtTitle" MaxLength="150" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvTitle" runat="server"
							    ControlToValidate="txtTitle" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Title." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Description</td>
					    <td>
						    <asp:TextBox ID="txtDescription" MaxLength="500" runat="server" TextMode="MultiLine"></asp:TextBox>
					    </td>
				    </tr>
				    <tr>
					    <td>Image<span class="requiredMark">*</span></td>
					    <td>						    
                            <div id="divAddPreviewContainer" runat="server" visible="false" class="AdverstisementContainer" style="margin-bottom:10px;"></div>
                            <asp:FileUpload ID="fuImage" runat="server" ToolTip="Select an Image file (*.jpg, *.jpeg, *.gif, *.png) or a Flash file (*.swf) for the Advertisement." />
						    <%--<asp:TextBox ID="txtFileName" MaxLength="250" runat="server"></asp:TextBox>--%>
                            <asp:RequiredFieldValidator ID="rfvFileName" runat="server"
							    ControlToValidate="fuImage" SetFocusOnError="true"
							    ErrorMessage="Please Select an Image." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CustomValidator ID="cvFileName" runat="server"
							    SetFocusOnError="true" Display="Dynamic" ValidateEmptyText="true"
                                OnServerValidate="cvFileName_OnServerValidate"
							    ErrorMessage="Please Select a Valid Image for Testimonial."
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Publish Date<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtPublishDate" MaxLength="50" CssClass="CalendarTextBox" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvPublishDate" runat="server"
							    ControlToValidate="txtPublishDate" SetFocusOnError="true"
							    ErrorMessage="<br/>Please Select a Publish Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CustomValidator ID="cvPublishDate" runat="server"
							    ControlToValidate="txtPublishDate" SetFocusOnError="true"
							    ClientValidationFunction="ValidateDate"
							    ErrorMessage="<br />Please Select a Valid Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>
					    </td>
				    </tr>
                     <tr>
                        <td>Has Published?</td>
                        <td><asp:CheckBox ID="chkHasPublished" runat="server" /></td>
                    </tr>                    
                </table>
            </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <asp:Button ID="btnList" runat="server" Text="View List" OnClick="btnList_Click" Visible="false" />            
            </div>
        </div>
        <%--Testimonial Information Group Box End--%>
   </asp:Panel>
</asp:Content>


